package com.liveinstars.common.ticker;

/**
 * Created by guoyanjiang on 2019-04-09.
 */
public class ExchangeFuturePairDTO extends ExchangePairDTO {

    private String exchangeFutureKey;
    private String future;

    public ExchangeFuturePairDTO(String exchangeKey, BasePair basePair, String coinKey, String currencyShow, String future, String exchangeFutureKey) {
        super(exchangeKey, basePair, coinKey, currencyShow);
        this.future = future;
        this.exchangeFutureKey = exchangeFutureKey;
    }

    @Override
    public String provideTickerPair() {
        return String.format("%s_%s", super.provideTickerPair(), future);
    }

    @Override
    public String provideTickerExchangeKey() {
        return exchangeFutureKey;
    }

    @Override
    public String provideTickerCurrency() {
        return String.format("%s_%s", super.provideCoinCurrencyUnitInPair(), future);
    }
}
